j3deditor.bin.hierarchy.util
Class SGFExporter

java.lang.Object
  extended by javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
      extended by j3deditor.bin.hierarchy.util.HierarchyWorker
          extended by j3deditor.bin.hierarchy.util.SGFExporter
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.Void>, java.util.concurrent.RunnableFuture<java.lang.Void>

public class SGFExporter
extends HierarchyWorker

Tool for exporting scenes with com.sun.j3d.utils.scenegraph.io.SceneGraphFileWriter.

Author:
Risto Seene
See Also:
SceneGraphFileWriter

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Constructor Summary
SGFExporter(J3DeScene scene)
          Creates an instance of SGFExporter which is able to export the content of the given scene.
 
Method Summary
protected  java.lang.Void doInBackground()
          Performs the exporting process in a background thread.
 void exportFile(java.lang.String filePath)
          Exports the scene to the given file.
 
Methods inherited from class j3deditor.bin.hierarchy.util.HierarchyWorker
addHierarchyListener, notifyListeners, removeHierarchyListener
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SGFExporter

public SGFExporter(J3DeScene scene)
Creates an instance of SGFExporter which is able to export the content of the given scene.

Parameters:
scene - an instance of J3DeScene this exporter can export from
Method Detail

exportFile

public void exportFile(java.lang.String filePath)
Exports the scene to the given file.

Parameters:
filePath - the path of the file the scene will be exported to

doInBackground

protected java.lang.Void doInBackground()
                                 throws java.lang.Exception
Performs the exporting process in a background thread.

Overrides:
doInBackground in class HierarchyWorker
Returns:
nothing
Throws:
java.lang.Exception - if an error occurs
See Also:
SwingWorker.doInBackground()